package com.upb.webserver.common.pojo.rest.fabric.data.req;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class ReqCreateChainDTO extends BaseChainReq {
    private String orderType;  //共识类型 kafka、solo
    private List<KafkaBroker> kafkaBrokers;  //共识类型为kafka时，需要填kafkaBrokers

    private List<OrdererOrgInfo> orderOrgs;
    private List<PeerOrgInfo> peerOrgs;

    @Data
    public static class KafkaBroker {
        private String ip;
        private String hostName;
        private Integer port;
    }
}

